package com.facebook.base;
//package ken.app.test;
//
//import java.io.BufferedReader;
//import java.io.OutputStream;
//import java.net.HttpURLConnection;
//import java.net.URL;
//import java.net.URLEncoder;
//
//import org.apache.http.HttpEntity;
//import org.apache.http.HttpResponse;
//import org.apache.http.client.entity.UrlEncodedFormEntity;
//import org.apache.http.client.methods.HttpPost;
//import org.apache.http.impl.client.DefaultHttpClient;
//import org.apache.http.message.BasicNameValuePair;
//import org.apache.http.protocol.HTTP;
//import org.apache.http.util.EntityUtils;
//
//public class ConnectionThread extends Thread{
//	@Override
//	public void run() {
//		// TODO Auto-generated method stub
//		String list_url = "************************";
//	    try {
////	        String appand = TimeStampForAuth.TimeStameMethod(main.this);
////	        String auth = android.util.Base64.encodeToString(("iphone" + ":" +
////	            "2a5a262d5a")
////	        .getBytes("UTF-8"), android.util.Base64.NO_WRAP);
//	        DefaultHttpClient client = new DefaultHttpClient();
//	        HttpPost post = new HttpPost(list_url+appand);
//	        Log.d("URL_LIST", list_url+appand);
//	        List nvps = new ArrayList();
//	        nvps.add(new BasicNameValuePair("login",Login));
//	        nvps.add(new BasicNameValuePair("password",password));
//	        nvps.add(new BasicNameValuePair("title",title));
//	        nvps.add(new BasicNameValuePair("category_id",cat_id));
//	        UrlEncodedFormEntity p_entity = new UrlEncodedFormEntity(nvps,HTTP.UTF_8);
//	        post.addHeader("Authorization", "Basic " + auth);
//	        post.setEntity(p_entity);
//	        HttpResponse response = client.execute(post);
//	        HttpEntity responseEntity = response.getEntity();
//	        String s = EntityUtils.toString(responseEntity);
//	        Log.d("List response", s);
//	    }
//	    catch(Exception e){
//	        System.out.println(e.toString());
//	    }
//	   }
//	
//	
//}
